package org.NooLab.html.content.table;

import java.util.ArrayList;
import java.util.Vector;

import org.NooLab.utilities.strings.ArrUtilities;






public class HtmlTableRow {
	// =================================

	// object references ..............

	
	
	// main variables / properties ....

	int index = -1;
	int colcount = 0 ;
	
	ArrayList<String> cells = new ArrayList<String>(); 
	
	// constants ......................

	
	
	// volatile variables .............

	
	
	// helper objects .................
	
	// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
	public HtmlTableRow(){
		
	}
	// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


	public String getCellofColumn(int index ){
		String content = "";
		
		return content ;
	}
	
	public void setCell( int index, String cstr){
	
		if (index>=cells.size()-1){
			cells = ArrUtilities.setSize( cells,index+1,"");
		}
		cells.set(index, cstr) ;
	}
	
	
	// ------------------------------------------------------------------------
	
	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public int getColcount() {
		return colcount;
	}

	public void setColcount(int colcount) {
		this.colcount = colcount;
	}

	public ArrayList<String> getCells() {
		return cells;
	}

	public void setCells(ArrayList<String> cells) {
		this.cells = cells;
		colcount = cells.size() ;
	}
	
	
	
}
